package model;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JPanel;
import javax.swing.JTextField;
/**
 * This class contents the JTextfield of the formulary
 * @author Estelle
 *
 */
public class BinForm {
	private JTextField LastName = new JTextField("LastName");
	private JTextField FirstName = new JTextField("FirstName");
	private JTextField NumberPerso = new JTextField("PersonalNumber");
	private JTextField homeAddress= new JTextField("homeAddress");
	private JTextField companyAddress=new JTextField("companyAddress");
	private JTextField homePage=new JTextField("homePage");
	private JTextField email=new JTextField("email");
	private JTextField groupe=new JTextField("groupe");
//--------------------------------------------------------------------------------------------------------------------------------------------------------	
	/**
	 * constructor
	 */
	public BinForm(){
		Font police = new Font("Arial", Font.BOLD, 14);
		
		LastName.setFont(police);
		LastName.setPreferredSize(new Dimension(150, 30));
		LastName.setForeground(Color.BLUE);
		
		FirstName.setFont(police);
		FirstName.setPreferredSize(new Dimension(150, 30));
		FirstName.setForeground(Color.BLUE);
		
		NumberPerso.setFont(police);
		NumberPerso.setPreferredSize(new Dimension(150, 30));
		NumberPerso.setForeground(Color.BLUE);
		
		homeAddress.setFont(police);
		homeAddress.setPreferredSize(new Dimension(150, 30));
		homeAddress.setForeground(Color.BLUE);
		
		companyAddress.setFont(police);
		companyAddress.setPreferredSize(new Dimension(150, 30));
		companyAddress.setForeground(Color.BLUE);
		
		homePage.setFont(police);
		homePage.setPreferredSize(new Dimension(150, 30));
		homePage.setForeground(Color.BLUE);
		
		email.setFont(police);
		email.setPreferredSize(new Dimension(150, 30));
		email.setForeground(Color.BLUE);
		
		groupe.setFont(police);
		groupe.setPreferredSize(new Dimension(150, 30));
		groupe.setForeground(Color.BLUE);
	}
//--------------------------------------------------------------------------------------------------------------------------------------------------------	
	/**
	 * To add each jtextfiel to a pannel
	 * @param panel
	 */
	public void addToPannel(JPanel panel){
		panel.add(LastName);
		panel.add(FirstName);
		panel.add(NumberPerso);
		panel.add(homeAddress);
		panel.add(companyAddress);
		panel.add(homePage);
		panel.add(email);
		panel.add(groupe);
	}
//--------------------------------------------------------------------------------------------------------------------------------------------------------
	/**
	 * Getter and setter of the class
	 * 
	 */
	public JTextField getLastName() {
		return LastName;
	}
	public void setLastName(JTextField lastName) {
		LastName = lastName;
	}
	public JTextField getFirstName() {
		return FirstName;
	}
	public void setFirstName(JTextField firstName) {
		FirstName = firstName;
	}
	public JTextField getNumberPerso() {
		return NumberPerso;
	}
	public void setNumberPerso(JTextField numberPerso) {
		NumberPerso = numberPerso;
	}
	public JTextField getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(JTextField homeAddress) {
		this.homeAddress = homeAddress;
	}
	public JTextField getCompanyAddress() {
		return companyAddress;
	}
	public void setCompanyAddress(JTextField companyAddress) {
		this.companyAddress = companyAddress;
	}
	public JTextField getHomePage() {
		return homePage;
	}
	public void setHomePage(JTextField homePage) {
		this.homePage = homePage;
	}
	public JTextField getEmail() {
		return email;
	}
	public void setEmail(JTextField email) {
		this.email = email;
	}
	public JTextField getGroupe() {
		return groupe;
	}
	public void setGroupe(JTextField groupe) {
		this.groupe = groupe;
	}
	
	
}
